from django.shortcuts import render
from django.http import JsonResponse, HttpResponse
from . import main
# Create your views here.


def return_text_generation_page(request):
    return render(request, 'form-element-textarea.html')


def process(request):
    input_data = request.POST['input_data']
    output_data = main.process(input_data)
    return JsonResponse({'output_data': output_data})
